<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>选择</title>
</head>
<body>


	<div class="container-fluid">
		<div class="modal-header">
			<button type="button" class="close" data-ng-click="Model.cancel()" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<h5>{{title}}</h5>
		</div>
		<div class="modal-body">

		<div class="container-fluid">
			<div class="row">
				<div class="col-sm-12 col-content">
				<nav class="nav">
					<query-like data="Model.dataMaster" place-holder="模糊查询..."></query-like>
				</nav>
				</div>
			</div>

			<div class="row">
				<div class="col-sm-12 col-content">

					<div class="table-responsive">
						<table class="table table-hover table-condensed" style="margin:0px;">
							<thead>
								<tr>
									<th colspan="99"  style="padding:0px;">

									</th>
								</tr>


								<tr>
									<th></th>
									<th>#</th>
									<th><input type="checkbox" data-ng-model="checkboxValue" data-ng-click="Model.checkboxClick($event)"></th>
									<th hidden="hidden">状态</th>
									<th hidden="hidden">sID</th>

									<th>商品条码</th>
									<th>商品名称</th>
									<th>规格型号</th>
									<th>单位</th>
								</tr>
							</thead>
							<tbody>
								<tr data-ng-show="row.userdata.recordState!='delete'"
									data-ng-class="{true:'active'}[Model.dataMaster.currentIndex==Model.dataMaster.rows.indexOf(row)]"
									data-ng-click="Model.dataMaster.onRowClick(row,$event)"
									data-ng-dblclick=""
									data-ng-repeat="row in Model.dataMaster.rows">
									
									<td style="width: 10px;"><span
										data-ng-show="Model.dataMaster.currentIndex==Model.dataMaster.rows.indexOf(row)"
										class="glyphicon glyphicon-hand-right" aria-hidden="true"></span></td>
										
									<td style="width: 10px;">{{Model.dataMaster.rows.indexOf(row)+1}}<span></span></td>
									<td style="width: 50px;"><input type="checkbox" data-ng-model="row.userdata.checked"></td>
									<td style="width: 50px;" hidden="hidden"	data-ng-bind="row.userdata.recordState"></td>
									<td style="width: 200px;" hidden="hidden"><span data-ng-bind="row.fID.value"></span></td>

									<td style="width: 100px;"><span data-ng-bind="row.itemNo.value"></span></td>
									<td style="width: 200px;"><span data-ng-bind="row.itemName.value"></span></td>
									<td style="width: 100px;"><span data-ng-bind="row.itemProperty.value"></span></td>
									<td style="width: 100px;"><span data-ng-bind="row.unitName.value"></span></td>

								</tr>

							</tbody>

							<tfoot>
								<tr>
									<th colspan="99"  style="padding:0px;">

									</th>
								</tr>

							</tfoot>

						</table>
					</div>


				</div>

			</div>
		<!-- 分页组件 -->
		<div class="row">
			<div class="col-sm-12 col-content">
				<pag-ination data="Model.dataMaster" first-text="首页"
					previous-text="上一页" next-text="下一页" last-text="末页"></pag-ination>
			</div>
		</div>


		</div>
			

		</div>
		<div class="modal-footer">
			<button class="btn btn-primary pull-left" data-ng-click="Model.ok()"><span class="glyphicon glyphicon-cloud-download"></span>  导入物料档案</button>
			<button class="btn btn-warning" data-ng-click="Model.cancel()">关闭窗口</button>
		</div>

	</div>



</body>
</html>